import { v4 as uuid } from 'uuid'
import { EControls } from '@/enums'
import md5 from 'md5'

export default class Elements {
  key: string
  label: string
  icon: string
  group: string
  type: EControls
  selected: boolean
  constructor(label: string, icon: string, group: string, type: EControls) {
    this.key = md5(uuid())
    this.type = type
    this.label = label
    this.icon = icon
    this.group = group
    this.selected = false
  }
}
